package com.paic.tpa;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.client.RestTemplate;

@EnableEurekaClient
@EnableCircuitBreaker
@EnableZuulProxy
@SpringBootApplication
//@ComponentScan(basePackages="com.paic.tpa,com.paic.test")
public class TpaPortalApplication {

	public static void main(String[] args) {
		SpringApplication.run(TpaPortalApplication.class, args);
	}
	
	@Bean
    @LoadBalanced
	public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
